package cn.acheng1314.springboot2.dto

import io.swagger.annotations.ApiModel
import io.swagger.annotations.ApiModelProperty
import io.swagger.annotations.ApiParam
import java.io.Serializable

/**
 * 房源信息保存对象
 */
@ApiModel(value = "楼盘基本信息")
open class HousePropertyDTO : Serializable {

    @ApiModelProperty(required = true, value = "区域id", example = "9999")
    var areaId: Int? = null
    @ApiModelProperty(required = true, value = "区域描述", example = "深圳市宝安区xx街道")
    var areaDescription: String? = null
    @ApiModelProperty(required = true, value = "房源名称", example = "天下最大楼盘")
    var name: String? = null
    @ApiModelProperty(required = true, value = "物业", example = "物业类型")
    var propertyType: String? = null
    @ApiModelProperty(required = true, value = "楼层限高", example = "99楼")
    var housePeriod: String? = null
    @ApiModelProperty(required = true, value = "开发商", example = "奈斯开发商")
    var developer: String? = null
    @ApiModelProperty(required = true, value = "占地面积", example = "10000.00")
    var floorArea: Float? = null
    @ApiModelProperty(required = true, value = "建筑面积", example = "999.99")
    var coveredArea: Float? = null
    @ApiModelProperty(required = true, value = "容积率", example = "78%")
    var plotRatio: String? = null
    @ApiModelProperty(required = true, value = "绿化率", example = "88%")
    var greenRate: String? = null
    @ApiModelProperty(required = true, value = "总户数", example = "8888户")
    var totalHouse: String? = null
    @ApiModelProperty(required = true, value = "物业公司", example = "甲乙天下物业有限公司")
    var propertyCompany: String? = null
    @ApiModelProperty(required = true, value = "物业费", example = "2.35元/㎡")
    var propertyPrice: String? = null
    @ApiModelProperty(required = true, value = "地理位置，json格式", example = "{\'longitude\':100.10,\'latitude\':100.10,\'title\':\'位置描述\'}")
    var marker: String? = null
    @ApiModelProperty(required = true, value = "交通信息", example = "xx地铁口，右行300m公交车站")
    var transportation: String? = null
    @ApiModelProperty(required = true, value = "楼盘描述", example = "天下第一楼盘，好用又好看")
    var description: String? = null
    @ApiModelProperty(required = true, value = "楼层描述", example = "现卖5、10、13-19层")
    var level: String? = null
    @ApiModelProperty(required = true, value = "备注", example = "这是测试信息")
    var remark: String? = null

    override fun toString(): String {
        return "HousePropertyDTO(areaId=$areaId, areaDescription=$areaDescription, name=$name, propertyType=$propertyType, housePeriod=$housePeriod, developer=$developer, floorArea=$floorArea, coveredArea=$coveredArea, plotRatio=$plotRatio, greenRate=$greenRate, totalHouse=$totalHouse, propertyCompany=$propertyCompany, propertyPrice=$propertyPrice, marker=$marker, transportation=$transportation, description=$description, level=$level, remark=$remark)"
    }


}